package com.ymttest.database.model;

import java.util.Date;

import com.google.gson.annotations.SerializedName;
import com.ymatou.common.lang.CipherUtil;
import com.ymttest.business.service.JUserCallService;




public class Userinfo {
	private String EncryptedLoginMobile;
	
	  public String getEncryptedLoginMobile() {
		return EncryptedLoginMobile;
	}

	public void setEncryptedLoginMobile(String encryptedLoginMobile) {
		EncryptedLoginMobile = encryptedLoginMobile;
	}

	private Integer UserSystem;
	  
    public Integer getUserSystem() {
		return UserSystem;
	}

	public void setUserSystem(Integer userSystem) {
		UserSystem = userSystem;
	}

	/**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column userinfo.UserId
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    private Integer userId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column userinfo.LoginId
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    private String loginId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column userinfo.LoginMobile
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    private String loginMobile;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column userinfo.LoginMail
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    @SerializedName("loginEmail")
    private String loginMail;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column userinfo.LoginPassword
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    private String loginPassword;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column userinfo.TradingPassword
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    private String tradingPassword;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column userinfo.UserType
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    private Integer userType;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column userinfo.UserGender
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    private Integer userGender;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column userinfo.UserState
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    private Integer userState;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column userinfo.UserLevel
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    private Integer userLevel;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column userinfo.UserSafeLevel
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    private Integer userSafeLevel;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column userinfo.IsSetDualSecurity
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    private Boolean isSetDualSecurity;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column userinfo.IsActivateEmail
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    private Boolean isActivateEmail;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column userinfo.RegisterTime
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    private Date registerTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column userinfo.LastLoginTime
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    private Date lastLoginTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column userinfo.LastUpdateTime
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    private Date lastUpdateTime;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column userinfo.UserId
     *
     * @return the value of userinfo.UserId
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column userinfo.UserId
     *
     * @param userId the value for userinfo.UserId
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column userinfo.LoginId
     *
     * @return the value of userinfo.LoginId
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public String getLoginId() {
        return loginId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column userinfo.LoginId
     *
     * @param loginId the value for userinfo.LoginId
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public void setLoginId(String loginId) {
        this.loginId = loginId == null ? null : loginId.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column userinfo.LoginMobile
     *
     * @return the value of userinfo.LoginMobile
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public String getLoginMobile() {
    	try{
    		if(JUserCallService.OpenEncrypt){
    			loginMobile=CipherUtil.decryptAES(JUserCallService.EncryptKey, this.getEncryptedLoginMobile());
    		}
    	}catch (Exception e) {
			e.printStackTrace();
		}
        return loginMobile;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column userinfo.LoginMobile
     *
     * @param loginMobile the value for userinfo.LoginMobile
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public void setLoginMobile(String loginMobile) {
        this.loginMobile = loginMobile == null ? null : loginMobile.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column userinfo.LoginMail
     *
     * @return the value of userinfo.LoginMail
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public String getLoginMail() {
        return loginMail;
    }
    

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column userinfo.LoginMail
     *
     * @param loginMail the value for userinfo.LoginMail
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public void setLoginMail(String loginMail) {
        this.loginMail = loginMail == null ? null : loginMail.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column userinfo.LoginPassword
     *
     * @return the value of userinfo.LoginPassword
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public String getLoginPassword() {
        return loginPassword;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column userinfo.LoginPassword
     *
     * @param loginPassword the value for userinfo.LoginPassword
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public void setLoginPassword(String loginPassword) {
        this.loginPassword = loginPassword == null ? null : loginPassword.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column userinfo.TradingPassword
     *
     * @return the value of userinfo.TradingPassword
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public String getTradingPassword() {
        return tradingPassword;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column userinfo.TradingPassword
     *
     * @param tradingPassword the value for userinfo.TradingPassword
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public void setTradingPassword(String tradingPassword) {
        this.tradingPassword = tradingPassword == null ? null : tradingPassword.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column userinfo.UserType
     *
     * @return the value of userinfo.UserType
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public Integer getUserType() {
        return userType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column userinfo.UserType
     *
     * @param userType the value for userinfo.UserType
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column userinfo.UserGender
     *
     * @return the value of userinfo.UserGender
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public Integer getUserGender() {
        return userGender;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column userinfo.UserGender
     *
     * @param userGender the value for userinfo.UserGender
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public void setUserGender(Integer userGender) {
        this.userGender = userGender;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column userinfo.UserState
     *
     * @return the value of userinfo.UserState
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public Integer getUserState() {
        return userState;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column userinfo.UserState
     *
     * @param userState the value for userinfo.UserState
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public void setUserState(Integer userState) {
        this.userState = userState;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column userinfo.UserLevel
     *
     * @return the value of userinfo.UserLevel
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public Integer getUserLevel() {
        return userLevel;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column userinfo.UserLevel
     *
     * @param userLevel the value for userinfo.UserLevel
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public void setUserLevel(Integer userLevel) {
        this.userLevel = userLevel;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column userinfo.UserSafeLevel
     *
     * @return the value of userinfo.UserSafeLevel
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public Integer getUserSafeLevel() {
        return userSafeLevel;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column userinfo.UserSafeLevel
     *
     * @param userSafeLevel the value for userinfo.UserSafeLevel
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public void setUserSafeLevel(Integer userSafeLevel) {
        this.userSafeLevel = userSafeLevel;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column userinfo.IsSetDualSecurity
     *
     * @return the value of userinfo.IsSetDualSecurity
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public Boolean getIsSetDualSecurity() {
        return isSetDualSecurity;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column userinfo.IsSetDualSecurity
     *
     * @param isSetDualSecurity the value for userinfo.IsSetDualSecurity
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public void setIsSetDualSecurity(Boolean isSetDualSecurity) {
        this.isSetDualSecurity = isSetDualSecurity;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column userinfo.IsActivateEmail
     *
     * @return the value of userinfo.IsActivateEmail
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public Boolean getIsActivateEmail() {
        return isActivateEmail;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column userinfo.IsActivateEmail
     *
     * @param isActivateEmail the value for userinfo.IsActivateEmail
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public void setIsActivateEmail(Boolean isActivateEmail) {
        this.isActivateEmail = isActivateEmail;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column userinfo.RegisterTime
     *
     * @return the value of userinfo.RegisterTime
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public Date getRegisterTime() {
        return registerTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column userinfo.RegisterTime
     *
     * @param registerTime the value for userinfo.RegisterTime
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column userinfo.LastLoginTime
     *
     * @return the value of userinfo.LastLoginTime
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column userinfo.LastLoginTime
     *
     * @param lastLoginTime the value for userinfo.LastLoginTime
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column userinfo.LastUpdateTime
     *
     * @return the value of userinfo.LastUpdateTime
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column userinfo.LastUpdateTime
     *
     * @param lastUpdateTime the value for userinfo.LastUpdateTime
     *
     * @mbggenerated Mon Dec 19 11:32:54 CST 2016
     */
    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }
}